---
title: SortField.ModifyKey Method (Excel)
keywords: vbaxl10.chm843081
f1_keywords:
- vbaxl10.chm843081
ms.prod: excel
api_name:
- Excel.SortField.ModifyKey
ms.assetid: 40227e28-a19e-2130-ae9d-8b87109815f5
ms.date: 06/08/2017
---


# SortField.ModifyKey Method (Excel)

Modify the key value by which values are sorted in the field.


## Syntax

 _expression_ . **ModifyKey**( **_Key_** )

 _expression_ A variable that represents a **SortField** object.


### Parameters



|**Name**|**Required/Optional**|**Data Type**|**Description**|
|:-----|:-----|:-----|:-----|
| _Key_|Required| **Range**|Specifies the key to be modified.|

## See also


#### Concepts


[SortField Object](sortfield-object-excel.md)

